package cn.hqc.basic.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum GlobalErrorCode {

    SUCCESS(0,"操作成功！"),
    FAIL(-1,"操作失败"),

    // 业务枚举
    PASSWORD_NO_SAME(1001,"两次密码不一致"),
    SHOP_HAVE(1002,"店铺已经存在！"),
    SHOP_NAME_ERROR(1003,"店铺名称违规"),
    PARAM_ERROR(1004,"参数不能为空！"),


    // 业务异常
    IMAGE_CODE_ERROR(2001,"图形验证码错误"),
    USER_HAS_REGISTER(2002,"用户已经注册，请去登录"),
    TIME_INTERVAL_ERROR(2003,"请不要频繁发送验证码"),
    SMS_CODE_ERROR(2004,"短信验证码错误"),

    ACCOUNT_ERROR(2005,"账号或者密码错误"),

    RESULT_NULL(2006,"返回结果为空"),




    ;
    private int code;
    private String message;
}
